<?php

class Zend_View_Helper_ShowListBranch {

    public function showListBranch($listBranchs, $view) {
        $str  = null;
        $str .=     '<table id="table">
                        <thead>
                            <thread>
                                <tr >
                                    <th>Tên chi nhánh</th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                </tr>
                            </thread>
                        </thead>';
        $str .=        '</tbody>';
        
        //
        $n=count($listBranchs);
        $i=0;
        $butA="'AB'"; $tagA="'A'";
        $butD="'DB'"; $tagD="'D'";
        $butE="'EB'"; $tagE="'E'";
        
        if(isset($listBranchs))
        foreach ($listBranchs as $branch) {
            $i++;
            $str .='<tr>';
            $str .='<td><b><a href="' . $view->url(array('controller' => 'branch', 'action' => 'index', 'id' => $branch->id)) . '"\">' . $view->escape($branch->name) . '</a>';
            $str.='</tr>';
        }
        $str .= '</tbody></table>';
        
        return $str;
    }

}


                     
                                                              